package com.cangshukj.junong.service.impl;

import java.util.List;
import com.cangshukj.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cangshukj.junong.mapper.LandNatureMapper;
import com.cangshukj.junong.domain.LandNature;
import com.cangshukj.junong.service.ILandNatureService;

/**
 * 土地流转性质mService业务层处理
 * 
 * @author wangjie
 * @date 2025-04-01
 */
@Service
public class LandNatureServiceImpl implements ILandNatureService 
{
    @Autowired
    private LandNatureMapper landNatureMapper;

    /**
     * 查询土地流转性质m
     * 
     * @param natureId 土地流转性质m主键
     * @return 土地流转性质m
     */
    @Override
    public LandNature selectLandNatureByNatureId(String natureId)
    {
        return landNatureMapper.selectLandNatureByNatureId(natureId);
    }

    /**
     * 查询土地流转性质m列表
     * 
     * @param landNature 土地流转性质m
     * @return 土地流转性质m
     */
    @Override
    public List<LandNature> selectLandNatureList(LandNature landNature)
    {
        return landNatureMapper.selectLandNatureList(landNature);
    }

    /**
     * 新增土地流转性质m
     * 
     * @param landNature 土地流转性质m
     * @return 结果
     */
    @Override
    public int insertLandNature(LandNature landNature)
    {
        landNature.setCreateTime(DateUtils.getNowDate());
        return landNatureMapper.insertLandNature(landNature);
    }

    /**
     * 修改土地流转性质m
     * 
     * @param landNature 土地流转性质m
     * @return 结果
     */
    @Override
    public int updateLandNature(LandNature landNature)
    {
        landNature.setUpdateTime(DateUtils.getNowDate());
        return landNatureMapper.updateLandNature(landNature);
    }

    /**
     * 批量删除土地流转性质m
     * 
     * @param natureIds 需要删除的土地流转性质m主键
     * @return 结果
     */
    @Override
    public int deleteLandNatureByNatureIds(String[] natureIds)
    {
        return landNatureMapper.deleteLandNatureByNatureIds(natureIds);
    }

    /**
     * 删除土地流转性质m信息
     * 
     * @param natureId 土地流转性质m主键
     * @return 结果
     */
    @Override
    public int deleteLandNatureByNatureId(String natureId)
    {
        return landNatureMapper.deleteLandNatureByNatureId(natureId);
    }
}
